package com.movitech.mobile.cz.base.bizconfig.service;

import com.baomidou.mybatisplus.service.IService;
import com.movitech.mobile.cz.base.bizconfig.entity.SStrategicCategory;
import com.movitech.mobile.cz.base.bizconfig.entity.ext.ExtSStrategicCategory;
import com.movitech.mobile.cz.base.bizconfig.entity.ext.SStrategicCategoryReqVO;
import com.movitech.mobile.cz.base.modules.controller.RestReturnResult;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 战略需求分类（战略采购分类） 服务类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
public interface SStrategicCategoryService extends IService<SStrategicCategory> {

    SStrategicCategory insertOrUpdateSStrategicCategory(SStrategicCategory sStrategicCategory);

    List<ExtSStrategicCategory> getSpecialityList();

    void deleteById(String id);

    SStrategicCategory getSStrategicCategoryById(String id);

    void updateStatus(String id);

    /**
     * 根据战略专业id查询战略品类
     * @param parentId
     * @return
     */
    List<ExtSStrategicCategory> getCategoryList(String parentId);

    RestReturnResult getPage(SStrategicCategoryReqVO sStrategicCategoryReqVO);
    Map<String,String> findIdAndNames();


}
